// app.js
App({
  globalData:{
    theme:"light",
    windowHeight:0
  },
  onLaunch() {
  
    // 展示本地存储能力
    wx.getSystemInfo({
      success: (res) => {
        const theme = res.theme;
       wx.setStorage({
         key:"theme",
         data: theme
       })
       this.globalData.theme = theme
      },
     
    });
    const sysInfo = wx.getSystemInfoSync()
    this.globalData.windowHeight = sysInfo.windowHeight

    // 登录
   
  },
  
})
